package com.xmim.core.session;

import com.xmim.core.exception.SessionrException;

public interface SessionHandleContext {

    String name();

    SessionHandle handler();

    SessionPipeline pipeline();

    void fireAdded() throws Exception;

    void fireRemoved() throws Exception;

    void fireRead(Object msg) throws Exception;

    void fireClose() throws Exception;

    void fireHeartbeat(Object msg) throws Exception;

    void fireException(Throwable cause) throws Exception;

    void fireReadComplete() throws Exception;

    void fireWriteComplete() throws Exception;


}
